<?php

namespace App\Transformers;

use App\Models\PayMethod;

class PayMethodTransformer extends BaseTransformer
{
    public function transform(PayMethod $model)
    {
        return [
            'id' => $model->id,
            'name' => $model->name,
            'value' => $model->spell,
            'created_at' => $model->created_at->toDateTimeString(),
        ];
    }
}
